package com.swotxu.oldwebproject.web.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 *
 * @Date: 2020/11/02 21:05
 * @Author: swotXu
 */
@Controller
public class RouteController {
    private static final Logger log = LoggerFactory.getLogger(RouteController.class);

    @GetMapping("/")
    public void toLogin(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        log.info("route -> /login/toLogin");
        request.getRequestDispatcher("/login/toLogin").forward(request, response);
    }
}
